package future;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

/**
 * @ClassName : completeFuture
 * @Description :
 * @Author : gyh
 * @Date: 2022-01-08 15:51
 */
public class completeFuture {
    public static void main(String[] args) {
        List<Integer> list = IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());
        System.out.println(list);

        IntStream.range(0, 10).forEach(value -> System.out.println(value));
    }
}
